package com.swinw.micimerci.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swinw.micimerci.utils.PageUtils;
import com.swinw.micimerci.utils.Query;


import com.swinw.micimerci.dao.ResourceCodeDao;
import com.swinw.micimerci.entity.ResourceCodeEntity;
import com.swinw.micimerci.service.ResourceCodeService;


@Service("resourceCodeService")
public class ResourceCodeServiceImpl extends ServiceImpl<ResourceCodeDao, ResourceCodeEntity> implements ResourceCodeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ResourceCodeEntity> page = this.page(
                new Query<ResourceCodeEntity>().getPage(params),
                new QueryWrapper<ResourceCodeEntity>()
        );

        return new PageUtils(page);
    }

}